package edu.ubb.remeye.security.manager;

import org.apache.mina.core.session.IoSession;

import edu.ubb.remeye.security.Security;

/**
 * Abstract security class for client, this should be extended when creating new
 * client security manager.
 * 
 * @author Andrew Ianicicau
 *
 */
public abstract class AbstractClientSecurity implements Security {

	///////////////////////////////////////////////////////////////////////////////////
	////		ATTRIBUTES - AbstractClientSecurity
	///////////////////////////////////////////////////////////////////////////////////

	/**
	 * Session object.
	 */
	protected IoSession session;

	
	
	///////////////////////////////////////////////////////////////////////////////////
	////		METHODS - AbstractClientSecurity
	///////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * Sets session "authenticated" attribute. Should be called when authentication finished.
	 */
	public void authenticated() {
		session.setAttribute("authenticated");
	}

}
